package com.tsd.jxc.buy.service;

import com.tsd.core.vo.HttpResult;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.buy.entity.JxcBuyReturnBill;
import com.tsd.jxc.buy.entity.JxcBuyReturnBillExt;
import com.tsd.system.entity.SysUser;
import com.tsd.system.entity.SysUserExt;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcBuyReturnBill服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:00:45
 */
public interface JxcBuyReturnBillService {

    /**
     * 描述：根据id获取JxcBuyReturnBill
     *
     * @param id
     */
    JxcBuyReturnBill getJxcBuyReturnBillById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcBuyReturnBill
     *
     * @param sid
     */
    JxcBuyReturnBillExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcBuyReturnBill
     *
     * @param list
     */
    void deleteJxcBuyReturnBills(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcBuyReturnBill
     *
     * @param record
     * @param opUser
     */
    void saveJxcBuyReturnBill(JxcBuyReturnBillExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcBuyReturnBill
     *
     * @param params
     * @param page
     */
    List<JxcBuyReturnBillExt> findJxcBuyReturnBills(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcBuyReturnBill
     *
     * @param params
     */
    List<JxcBuyReturnBillExt> findJxcBuyReturnBills(Map<String, Object> params) throws Exception;

    HttpResult<String> changeJxcBuyReturnBillAuditState(List<String> sidList, Integer state, SysUserExt opUser) throws Exception;

    void genJxcBuyReturnBill2OutBill(List<String> sidList, SysUserExt opUser) throws Exception;

    Integer genJxcFinanceAccountDetail4BuyReturn(List<String> sidList, SysUserExt opUser) throws Exception;

    /**
     * 导出-包含明细
     *
     * @param params
     * @param page
     * @return
     */
    List<JxcBuyReturnBillExt> findJxcBuyReturnBillsInclude(Map<String, Object> params, PageBean page);

    List<JxcBuyReturnBillExt> queryJxcBuyReturnBillData4Print(List<String> sidList) throws Exception;
}